-
-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix ModelingTookit extension #280
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #280 +/- ##
=======================================
Coverage 89.81% 89.81%
=======================================
Files 27 27
Lines 3268 3268
=======================================
Hits 2935 2935
Misses 333 333 ☔ View full report in Codecov by Sentry. |
|
Ahh, that makes sense. Yes, that worked, thanks a lot :) |
Ok, I have added some tests to ensure that |
@TorkelE Thank you very much! |
This is an attempt to fix the modelling toolkit extension, and reintroduce support for the
mtk_to_si
function, which was removed in the last update.Changes:
mtk_to_si
is no longer exported from the extension. But instead created in the main package (without methods) and methods then added in the extension.export
statements in the extension as these should not be there.ModelingToolkitSIExt
. Motivation: extensions should (ideally) have names unique to both packages involved. If two packages both created extensions calledModelingToolkitExt
(no unthinkable), these will overwrite each other, causing errors if loaded simultaneously.Unfortunately this does not work fully. This code:
generates a
error.
This, however, works: